<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">
<h:head>
	<title>NullPointerException Handler</title>
</h:head>
<h:form>
	<h2>NullPointerExceptionHandler</h2>
	<p:ajaxExceptionHandler id="exception" type="java.lang.NullPointerException"
	                            update="exceptionPanel" onexception="alert('An Exception Occured ::')"/>
	                            
	<p:outputPanel id="exceptionPanel" style="width:500px;height:200px;border:1px;font-size:10px;">
		<p:outputLabel value="Exception Type :: #{pfExceptionHandler.type}"></p:outputLabel>
		<p:outputLabel value="Exception Message :: #{pfExceptionHandler.message}"></p:outputLabel>
		<p:outputLabel value="Exception StackTrace :: #{pfExceptionHandler.formattedStackTrace}"></p:outputLabel>
    </p:outputPanel>	                            
</h:form>
</html>